.class public Lrexsee/core/browser/clazz/LoadResourceListeners;
.super Ljava/lang/Object;
.source "LoadResourceListeners.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lrexsee/core/browser/clazz/LoadResourceListeners$LoadResourceListener;
    }
.end annotation


# instance fields
.field private final listeners:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lrexsee/core/browser/clazz/LoadResourceListeners$LoadResourceListener;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 10
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 11
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lrexsee/core/browser/clazz/LoadResourceListeners;->listeners:Ljava/util/ArrayList;

    .line 12
    return-void
.end method


# virtual methods
.method public add(Lrexsee/core/browser/clazz/LoadResourceListeners$LoadResourceListener;)V
    .locals 1
    .param p1, "listner"    # Lrexsee/core/browser/clazz/LoadResourceListeners$LoadResourceListener;

    .prologue
    .line 14
    iget-object v0, p0, Lrexsee/core/browser/clazz/LoadResourceListeners;->listeners:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 15
    return-void
.end method

.method public clear()V
    .locals 1

    .prologue
    .line 17
    iget-object v0, p0, Lrexsee/core/browser/clazz/LoadResourceListeners;->listeners:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 18
    return-void
.end method

.method public run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V
    .locals 2
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "browser"    # Lrexsee/core/browser/Browser;
    .param p3, "url"    # Ljava/lang/String;

    .prologue
    .line 20
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/LoadResourceListeners;->listeners:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-lt v0, v1, :cond_0

    .line 22
    return-void

    .line 21
    :cond_0
    iget-object v1, p0, Lrexsee/core/browser/clazz/LoadResourceListeners;->listeners:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lrexsee/core/browser/clazz/LoadResourceListeners$LoadResourceListener;

    invoke-virtual {v1, p1, p2, p3}, Lrexsee/core/browser/clazz/LoadResourceListeners$LoadResourceListener;->run(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)V

    .line 20
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method
